# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=vlan-hopping
pkgver=21.a37ba4e
pkgrel=3
groups=('blackarch' 'blackarch-automation' 'blackarch-networking'
        'blackarch-recon')
pkgdesc='Easy 802.1Q VLAN Hopping '
arch=('any')
url='https://github.com/nccgroup/vlan-hopping'
license=('GPL3')
depends=('bash' 'metasploit' 'arp-scan' 'yersinia' 'wireshark-cli' 'screen'
         'ethtool' 'dmidecode' 'vlan')
makedepends=('git')
source=("git+https://github.com/nccgroup/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 frogger.sh "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

